<?php
    class product_Ajax extends Ajax
    {
        public function upload()
        {
            $upload_handler = new UploadHandler();
            foreach($upload_handler->aFiles as $key => $file)
            {                
                $this->database->add('images',array(
                    'name' => $file['name'],
                    'url' => $file['url']
                )); 
            }
        }
    }
?>
